@extends("/paging_template")
@import com.mgfireworks.mgplatform.mgadmin.product.model.*
@args List<Band> bandList
<s_panel>
	<s_title slot="title">品牌列表</s_title>
	<s_buttons slot="button" cols="4">
		<s_button type="query"></s_button>
		<s_button type="link" icon="fa-plus" href="@url("add.html")">添加</s_button>
		<s_button type="link" icon="fa-pencil" href="@url("edit.html?bandId={0}")">修改</s_button>
		<s_button type="del" href="@url("del.json?bandId={0}")">删除</s_button>
	</s_buttons>
</s_panel>

<d_table min-width="500px">
	<d_tr slot="head">
		<d_th class="td_row_id"></d_th>
		<d_th>品牌编号</d_th>
		<d_th>品牌名称</d_th>
		<d_th>标识位</d_th>
	</d_tr>
	@if(bandList){
	@{int i=0;}
	@for(Band p : bandList){
	<d_tr slot="body" class="table_row @(i%2==0?"odd":"event")">
	@{i++;}
	<d_td class="td_row_id">
		<input type="checkbox" class="flat" name="__recordId" value="@p.getBandId()"/>
	</d_td>
	<d_td>@p.getBandId()</d_td>
	<d_td>@p.getBandName()</d_td>
	<d_td>@p.getFlag()</d_td>
	</d_tr>
	}}
</d_table>
